package com.xc.service.impl;

import com.xc.mapper.ProductMapper;
import com.xc.model.dto.ResultDTO;
import com.xc.model.entity.FenleiSortEntity;
import com.xc.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public ResultDTO getByFenleiId(FenleiSortEntity fenleiSortEntity) {
        return ResultDTO.data(productMapper.getByFenleiId(fenleiSortEntity));
    }
}
